finding the restricted values for a rational expression